-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KAFKA-9661: Propagate includeSynonyms option to AdminClient in ConfigCommand #8229
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -367,7 +367,7 @@ object ConfigCommand extends Config { | |||
println(s"Completed updating default config for $entityType in the cluster.") | |||
} | |||
|
|||
private def describeConfig(adminClient: Admin, opts: ConfigCommandOptions): Unit = { | |||
private[admin] def describeConfig(adminClient: Admin, opts: ConfigCommandOptions): Unit = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this visibility just for testing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, the alterConfigs method above this had the same visibility too for the same reason.
@@ -426,7 +426,9 @@ object ConfigCommand extends Config { | |||
dynamicConfigSource | |||
|
|||
val configResource = new ConfigResource(configResourceType, entityName) | |||
val configs = adminClient.describeConfigs(Collections.singleton(configResource)).all.get(30, TimeUnit.SECONDS) | |||
val describeOptions = new DescribeConfigsOptions().includeSynonyms(includeSynonyms) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was going to ask about unused linter warnings to catch bugs like this, but turns out we have a problem in our build. Filed https://issues.apache.org/jira/browse/KAFKA-9665
LGTM. Thanks, @rajinisivaram |
Committer Checklist (excluded from commit message)